<?php
/**
 * Created by PhpStorm.
 * User: lance
 * Date: 11/28/17
 * Time: 4:19 PM
 */

namespace app\customer\validate;
/**
 * 用户存款
 */

use think\Validate;

class Deposit extends Validate
{
    protected $rule=[
        'customer_id|用户id' => 'require',
        'number|存款单号' => 'require',
        'deposit_time|存款时长' => 'require|number|egt:1',
        'money|存款金额' => 'require|number|gt:0'
    ];
    protected $scene=[
        'number' => ['number'],
        'money' => ['money'],
        'deposit_time' => ['deposit_time'],
    ];
}